/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CONDICOESTIPONASCIMENTO")
public class CondicoesTipoNascimentoProteu implements Serializable{

    @Id
    @Column(name="CTN_ST_CODIGO")
    private Integer ctnStCodigo;
    @Column(name="CTN_ST_DESCRICAO")
    private String ctnStDescricao;

    public Integer getCtnStCodigo() {
        return ctnStCodigo;
    }

    public void setCtnStCodigo(Integer ctnStCodigo) {
        this.ctnStCodigo = ctnStCodigo;
    }

    public String getCtnStDescricao() {
        return ctnStDescricao;
    }

    public void setCtnStDescricao(String ctnStDescricao) {
        this.ctnStDescricao = ctnStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CondicoesTipoNascimentoProteu other = (CondicoesTipoNascimentoProteu) obj;
        if (this.ctnStCodigo != other.ctnStCodigo && (this.ctnStCodigo == null || !this.ctnStCodigo.equals(other.ctnStCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + (this.ctnStCodigo != null ? this.ctnStCodigo.hashCode() : 0);
        return hash;
    }


}
